package com.learning.security.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * OAuth2 刷新令牌
 * </p>
 *
 * @author xxx
 * @since 2024-10-03
 */
@Data
@Accessors(chain = true)
@Schema(name = "Oauth2RefreshTokenVO", description = "OAuth2 刷新令牌")
public class Oauth2RefreshTokenVO {

    @Schema(description = "编号")
    private Long id;

    @Schema(description = "用户编号")
    private Long userId;

    @Schema(description = "刷新令牌")
    private String refreshToken;

    @Schema(description = "用户类型")
    private Byte userType;

    @Schema(description = "客户端编号")
    private String clientId;

    @Schema(description = "授权范围")
    private String scopes;

    @Schema(description = "过期时间")
    private Date expiresTime;

    @Schema(description = "是否删除")
    private Boolean deleted;

    @Schema(description = "租户编号")
    private Long tenantId;
}
